package com.jevons.muffin.bind.adapter.recycleviewadatper;

/**
 * Copyright 2020 JxGIS
 *
 * @file BindingCollectionAdapter
 * @auth linaisheng
 * Created on 2023/12/7.
 * Description：
 */

import androidx.annotation.NonNull;

/**
 * Base interface for the binding collection adapters for various components.
 */
public interface BindingCollectionAdapter<T> {

    /**
     * Sets the item biding for the adapter.
     */
    void setItemBinding(@NonNull ItemBinding<? super T> itemBinding);

    /**
     * Returns the {@link ItemBinding} that the adapter that was set.
     *
     * @throws NullPointerException if the item binding was not set.
     */
    @NonNull
    ItemBinding<? super T> getItemBinding();


}
